package cn.yunhe.bizImpl;

import java.util.List;

import cn.yunhe.biz.AccountBiz;
import cn.yunhe.dao.AccountDao;
import cn.yunhe.daoImpl.AccountDaoImpl;
import cn.yunhe.entity.Account;

public class AccountBizImpl implements AccountBiz {
	private AccountDao accountDao;
	public Account get(int accountId) {
		
		return accountDao.get(accountId);
	}

	public void addAccount(Account account) {
		accountDao.addAccount(account);

	}

	public void delAccount(int accountId) {
		
		accountDao.delAccount(accountId);
	}

	public void updateAccount(Account account) {
		
		accountDao.updateAccount(account);
	}

	public List<Account> findAllAccount(String hql) {
		
		return accountDao.findAllAccount(hql);
	}

	public AccountDao getAccountDao() {
		return accountDao;
	}

	public void setAccountDao(AccountDao accountDao) {
		this.accountDao = accountDao;
	}
	
}
